import BaseTemplate from "@/components/layout/BaseTemplate.vue";

export default [
  {
    path: "/purchasing",
    name: "purchasingTemplate",
    component: BaseTemplate,
    children: [
      {
        path: "supplier",
        name: "supplier",
        component: () =>
          import(
            /* webpackChunkName: "supplier" */ "@/views/purchasing/Supplier.vue"
          ),
        meta: {
          title: "供应商维护",
        },
      },
      {
        path: "evaluation-criterion",
        name: "evaluationCriterion",
        component: () =>
          import(
            /* webpackChunkName: "evaluationCriterion" */ "@/views/purchasing/EvaluationCriterion.vue"
          ),
        meta: {
          title: "供应评价标准",
        },
      },
      {
        path: "rating",
        name: "rating",
        component: () =>
          import(
            /* webpackChunkName: "rating" */ "@/views/purchasing/Rating.vue"
          ),
        meta: {
          title: "供应商等级评定",
        },
      },
      {
        path: "po",
        name: "po",
        component: () =>
          import(
            /* webpackChunkName: "po" */ "@/views/purchasing/PoReceipt.vue"
          ),
        meta: {
          title: "采购申请单",
        },
      },
      {
        path: "orders",
        name: "orders",
        component: () =>
          import(
            /* webpackChunkName: "orders" */ "@/views/purchasing/OrdersReceipt.vue"
          ),
        meta: {
          title: "采购订单",
        },
      },
      {
        path: "arrival-order",
        name: "arrivalOrder",
        component: () =>
          import(
            /* webpackChunkName: "arrivalOrder" */ "@/views/purchasing/ArrivalOrderReceipt.vue"
          ),
        meta: {
          title: "采购到货单",
        },
      },
      {
        path: "price-list",
        name: "priceList",
        component: () =>
          import(
            /* webpackChunkName: "priceList" */ "@/views/purchasing/PriceListReceipt.vue"
          ),
        meta: {
          title: "采购比价单",
        },
      },
      {
        path: "exception-record",
        name: "exceptionRecord",
        component: () =>
          import(
            /* webpackChunkName: "exceptionRecord" */ "@/views/purchasing/ExceptionRecordReceipt.vue"
          ),
        meta: {
          title: "采购订单异常记录单",
        },
      },
    ],
  },
];
